Blitz (139/213)

From:Tony Rolfe
Date:24 May 2000 at 23:04:48
Subject:Re: Bug in Lof?

On Wed, 24 May 2000 05:09:43 -0700 (PDT) Francis G. Loch said:
> Hi Gareth,
>
> --- Gareth Griffiths <gazchap@btinternet.com> wrote: >
> �� Sender: Francis G. Loch <fgloch@yahoo.com>
> > > What do you mean by a secondary sort? Are you
> > talking
> > > about having two array lists (like a table), e.g.:
> >
> > I mean like, say you have four songs by the same
> > artist, e.g.
> >
> > Chemical Brothers: Hey Boy Hey Girl
> > Chemical Brothers: Under The Influence
> > Chemical Brothers: Music - Response
> > Chemical Brothers: Out Of Control
> >
> > Now that I have the artists in alpha. order, I would
> > like the titles in
> > alpha. order too, for each artist.
>
> Sorry for not replying earlier, but I've just had my
> appendix removed and I only got back from the hospital
> yesterday.

Ouch. Hope all is OK.

>
> What you could do it is have an array (or two, if you
> want) and check the artist's name (after the inital
> sort) and make a note of the range that that
> particular artist comes at in the array.

Alternatively, with many sort algorythms, things with the same sort
key stay in the original order when sorted. In this case, do a sort
on the least significant key first, then work up to the most
important. In your case, sort on Title first, then Artist.

I don't know whether this will work with the particular sort used by
Blitz, but it won't take too long to try it out.

Cheers



Tony Rolfe
Amiga 2000, 68030/25, 1+8Mb
www.shoalhaven.net.au/edgewater
ICQ #51271965

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie